Skip to content

同步服务订单信息

由于收款商户进行的某些“线下操作”会导致微信支付侧的订单状态与实际情况不符。**前置条件:**同步商户渠道收款成功信息时,即场景类型=“Order_Paid”,订单的状态需为 [FINISHED:商户完结订单] 官方文档

js
wxpay
.
v3
.
payscore
.
serviceorder
.
_out_order_no_
.
sync
.
post
({
appid
,
service_id
,
type
,
detail
,
}, {
out_order_no
})
.
then
(
({
data
: {
out_order_no
,
appid
,
service_id
,
post_payments
,
post_discounts
,
time_range
,
location
,
service_introduction
,
risk_fund
,
attach
,
notify_url
,
mchid
,
state
,
state_description
,
order_id
,
total_amount
,
need_collection
,
collection
,
}, }) => ({
out_order_no
,
appid
,
service_id
,
post_payments
,
post_discounts
,
time_range
,
location
,
service_introduction
,
risk_fund
,
attach
,
notify_url
,
mchid
,
state
,
state_description
,
order_id
,
total_amount
,
need_collection
,
collection
,
}) )

Released under the MIT License. (SITEMAP)